package com.monitor.display_platform.business.test;

import com.monitor.display_platform.core.common.ServerResponse;
import com.monitor.display_platform.core.utils.DateUtil;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

//@RestController
//@RequestMapping("/sys/")
@Service
public class SysMonitorController {

//    @GetMapping("/hello")
    public ServerResponse hello(){
        return ServerResponse.success(DateUtil.format(new Date(),DateUtil.PATTERN_YYYY_MM_DD_HHMM));
    }

}
